<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!--  v-text指令：渲染普通文本内容 -->
        <h1 style="color: cadetblue;" v-text="info"></h1>
        <!--  v-html指令：渲染携带HTML元素标签的文本 -->
        <h1 style="color: orangered;" v-html="info"></h1>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                info:'<a href="http://www.baidu.com">百度一下</a>'
            }
        })
    </script>
</body>

</html>